using System;

namespace caseDrawer
{

	public sealed class GeneratorFactory
	{
		private static GeneratorFactory instance = new GeneratorFactory();

		public static GeneratorFactory Instance {
			get {
				return instance;
			}
		}

		private GeneratorFactory()
		{
		}

		public AbstractGenerator getGenerator(string g){
			AbstractGenerator generator = null;

			switch (g) {
				case "TC_FLOW":
					generator = new FlwGenerator();
					break;
				case "TC_COMMONNEGATIVE":
					//generator = new NgvGenerator();
					break;
				case "TC_REQUIRED":
					generator = new RqrdGenerator();
					break;
				case "TC_INTIMEVALIDATION":
					//generator = new VldGenerator();
					break;
			}

			return generator;
		}


	}
}
